<?php 
	include_once '../../conn/all.php';
	 session_start();
		$user=$_SESSION["unc"];
	$class=$_GET["class"];
	$res=sql("s", "photo", "*", "where user='".$user."' and class=".$class);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../templates/met/images/css/reset.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../templates/met/images/css/metinfo.css" />
<script type="text/javascript"src="../include/metvar.js"></script>
<script type="text/javascript" src="../include/metinfo.js"></script>
<script type="text/javascript" src="../../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="../templates/met/images/js/iframes.js"></script>
<script type="text/javascript" src="../templates/met/images/js/cookie.js"></script>
<style type="text/css">
body{
	font-size: ; 
	font-family:;
	text-align:center;
}
</style>
<script type="text/javascript">
//ajax执行时间
var time=200;
var lang = 'cn';
var metimgurl='../templates/met/images/';
</script>
<script type="text/javascript">
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 		
			parent.sitemp('set/sitemap.php?lang=cn&admintp=&langset=cn');  
		}				
	});
</script>

<title>产品中心</title>
</head>

<body>

	<table cellpadding="2" cellspacing="1" class="table">
		
		<tr>
                <td width="5%" class="list">选择</td>
				<td width="5%" class="list">排序</td>
                <td width="40%" class="list">标题</td>
	
                <td width="5%"  class="list" >推荐</td>
	
				<td width="5%"  class="list" >置顶</td>
	
                <td width="10%"  class="list" >更新时间</td>	
				
				<td width="14%"  class="list" >访问权限</td>
					
	           <td width="10%"  class="list" >操作</td>
       </tr>
<?php 
	$level=arrayLevel($res);
	if ($level==1) {
		$info=$res;
		echo '<tr class="mouse click">';
		echo ' <td class="list-text"><input name="id" type="checkbox" id="id" value="3" /></td>';
		echo '<td class="list-text"><input type="text" name="no_order_3" class="text no_order" value="'.$info['order_int'].'" /></td>';
		echo '<td class="list-text" align="left">'.$info['title'].'</td>';
		echo '<td class="list-text">'.$info['recommend'].'</td>
				<td class="list-text">'.$info['top'].'</td>
				<td class="list-text">'.$info['time'].'</td>
				<td class="list-text">不限</td>
				<td class="list-text"><a href="img.php?class='.$info['class'].'&user='.$info['user'].'&id='.$info['id'].'">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=img_del&id='.$info['id'].'&class='.$info['class'].'"  >删除</a></td>';
		echo '</tr>';
	}elseif($level>1){
		foreach ($res as $info){
			echo '<tr class="mouse click">';
echo ' <td class="list-text"><input name="id" type="checkbox" id="id" value="3" /></td>';
echo '<td class="list-text"><input type="text" name="no_order_3" class="text no_order" value="'.$info['order_int'].'" /></td>';
echo '<td class="list-text" align="left">'.$info['title'].'</td>';
echo '<td class="list-text">'.$info['recommend'].'</td>
				<td class="list-text">'.$info['top'].'</td>
				<td class="list-text">'.$info['time'].'</td>
				<td class="list-text">不限</td>
				<td class="list-text"><a href="img.php?class='.$info['class'].'&user='.$info['user'].'&id='.$info['id'].'">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=img_del&id='.$info['id'].'&class='.$info['class'].'"  >删除</a></td>';
echo '</tr>';
		}
	
	}
?>			 
   	   <tr> 
            <td class="all"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAllx($(this),'del')" value="checkbox"></td>
             <td class="all"><label for="chkAll">全选</label></td>
			 <td class="all-submit" colspan="6">
				<input name="submit" type='submit' value='删除' class="submit li-submit" onclick="return met_modify($(this),'del','del');" /> 
				<input name="saveorder" type='submit' value='保存' class="submit li-submit" onclick="return met_modify($(this),'del','editor');" /> 
				<div class="li-submit">
			<form method="POST" id="mycopy" name="mycopy" style="display:inline;" action="../advanced/copypara.php?lang=cn&module=3&action=copy" target="_self">
			  <input name="allid" type="hidden" value="" />
			  <input name="access" type="hidden" value="" />
			  <input name="class1" type="hidden" value="3" />
                &nbsp;&nbsp;<select name="copylang">
				    <option value="">选择语言</option>
	
				    <option value="cn">简体中文</option>
	
				    <option value="en">English</option>

               </select>
			   <select name="copyclass1" style="display:none;">
			        <option value="">一级栏目</option>
			   </select>
			   <select name="copyclass2" style="display:none;">
			        <option value="">二级栏目</option>
			   </select>
			   <select name="copyclass3" style="display:none;">
			        <option value="">三级栏目</option>
			   </select>
            </form>
				</div>
				<input name="submit" type='submit' value='复制' class="submit li-submit" onclick="return met_modify($(this),'mycopy','editor');" />
			  <div class="page_list">
			  <form method='POST' name='page1'  action='index.php?lang=cn&class1=3&class2=&class3=&search=&title=&page=' target='_self'><style>.digg4 a{ border:1px solid #ccdbe4; padding:2px 8px 2px 8px; background:#fff; background-position:50%; margin:2px; color:#666; text-decoration:none;}
.digg4 a:hover { border:1px solid #999; color:#fff; background-color:#999;}
.digg4 a:active {border:1px solid #000099; color:#000000;}
.digg4 span.current { padding:2px 8px 2px 8px; margin:2px; text-decoration:none;}
.digg4 span.disabled { border:1px solid #ccc; background:#fff; padding:1px 8px 1px 8px; margin:2px; color:#999;}
 </style><div class='digg4'><span class='disabled' style='font-family: Tahoma, Verdana;'><b>«</b></span><span class='disabled' style='font-family: Tahoma, Verdana;'>‹</span><span class='current'>1</span><span class='disabled' style='font-family: Tahoma, Verdana;'>›</span><span class='disabled' style='font-family: Tahoma, Verdana;'><b>»</b></span> 转到<input name='page_input' class='page_input' />页  <input type='submit' name='Submit3' value=' go ' class='submit' /></form></div>
			  </div>
			  </td>
          </tr>
		  
		<tr>
		  <td class="footer" colspan="8"> </td>
	  </tr>
</table>

</body>
</html>
